package com.tfswue.qmp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("user")
//给实体类加一个序列化
public class User1 implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
//    @TableField("username")
    private String username;
    private String email;
    private String password;
}



//@Data
//@TableName("user")
//public class User1 {
//    @TableId(type = IdType.AUTO)
//    private Integer id;
//    private String username;
//    private String email;
//    private String password;
//}
